import request from '@/utils/request'

// 查询外出申请记录列表
export function listEgressRecords(query) {
  return request({
    url: '/business/egressRecords/list',
    method: 'get',
    params: query
  })
}

// 查询外出申请记录详细
export function getEgressRecords(id) {
  return request({
    url: '/business/egressRecords/' + id,
    method: 'get'
  })
}

// 新增外出申请记录
export function addEgressRecords(data) {
  return request({
    url: '/business/egressRecords',
    method: 'post',
    data: data
  })
}

// 修改外出申请记录
export function updateEgressRecords(data) {
  return request({
    url: '/business/egressRecords',
    method: 'put',
    data: data
  })
}

// 删除外出申请记录
export function delEgressRecords(id) {
  return request({
    url: '/business/egressRecords/' + id,
    method: 'delete'
  })
}
export function updateApproveEgressRecords(query) {
  return request({
    url: '/business/egressRecords/approve',
    method: 'get',
    params: query
  })
}
